package com.data.modules.online.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

@ApiModel(description = "onl_auth_data", value = "onl_auth_data对象")
@TableName("onl_auth_data")
public class OnlAuthData implements Serializable {
    private static final long serialVersionUID = 1;
    @Excel(name = "online表ID", width = 15.0d)
    @ApiModelProperty("online表ID")
    private String cgformId;
    @ApiModelProperty("创建人")
    private String createBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private Date createTime;
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键")

    private String id;
    @Excel(name = "规则列", width = 15.0d)
    @ApiModelProperty("规则列")
    private String ruleColumn;
    @Excel(name = "规则名", width = 15.0d)
    @ApiModelProperty("规则名")
    private String ruleName;
    @Excel(name = "规则条件 大于小于like", width = 15.0d)
    @ApiModelProperty("规则条件 大于小于like")
    private String ruleOperator;
    @Excel(name = "规则值", width = 15.0d)
    @ApiModelProperty("规则值")
    private String ruleValue;
    @Excel(name = "1有效 0无效", width = 15.0d)
    @ApiModelProperty("1有效 0无效")
    private Integer status;
    @ApiModelProperty("更新人")
    private String updateBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty("更新日期")
    private Date updateTime;

    public OnlAuthData setCgformId(String cgformId2) {
        this.cgformId = cgformId2;
        return this;
    }

    public OnlAuthData setCreateBy(String createBy2) {
        this.createBy = createBy2;
        return this;
    }

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public OnlAuthData setCreateTime(Date createTime2) {
        this.createTime = createTime2;
        return this;
    }

    public OnlAuthData setId(String id) {
        this.id = id;
        return this;
    }

    public OnlAuthData setRuleColumn(String ruleColumn2) {
        this.ruleColumn = ruleColumn2;
        return this;
    }

    public OnlAuthData setRuleName(String ruleName2) {
        this.ruleName = ruleName2;
        return this;
    }

    public OnlAuthData setRuleOperator(String ruleOperator2) {
        this.ruleOperator = ruleOperator2;
        return this;
    }

    public OnlAuthData setRuleValue(String ruleValue2) {
        this.ruleValue = ruleValue2;
        return this;
    }

    public OnlAuthData setStatus(Integer status2) {
        this.status = status2;
        return this;
    }

    public OnlAuthData setUpdateBy(String updateBy2) {
        this.updateBy = updateBy2;
        return this;
    }

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public OnlAuthData setUpdateTime(Date updateTime2) {
        this.updateTime = updateTime2;
        return this;
    }

    @Override
    public String toString() {
        return "OnlAuthData(id=" + getId() + ", cgformId=" + getCgformId() + ", ruleName=" + getRuleName() + ", ruleColumn=" + getRuleColumn() + ", ruleOperator=" + getRuleOperator() + ", ruleValue=" + getRuleValue() + ", status=" + getStatus() + ", createTime=" + getCreateTime() + ", createBy=" + getCreateBy() + ", updateBy=" + getUpdateBy() + ", updateTime=" + getUpdateTime() + ")";
    }


    public boolean canEqual(Object other) {
        return other instanceof OnlAuthData;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof OnlAuthData)) {
            return false;
        }
        OnlAuthData onlAuthData = (OnlAuthData) o;
        if (!onlAuthData.canEqual(this)) {
            return false;
        }
        Integer status2 = getStatus();
        Integer status3 = onlAuthData.getStatus();
        if (status2 != null ? !status2.equals(status3) : status3 != null) {
            return false;
        }
        String id = getId();
        String id2 = onlAuthData.getId();
        if (id != null ? !id.equals(id2) : id2 != null) {
            return false;
        }
        String cgformId2 = getCgformId();
        String cgformId3 = onlAuthData.getCgformId();
        if (cgformId2 != null ? !cgformId2.equals(cgformId3) : cgformId3 != null) {
            return false;
        }
        String ruleName2 = getRuleName();
        String ruleName3 = onlAuthData.getRuleName();
        if (ruleName2 != null ? !ruleName2.equals(ruleName3) : ruleName3 != null) {
            return false;
        }
        String ruleColumn2 = getRuleColumn();
        String ruleColumn3 = onlAuthData.getRuleColumn();
        if (ruleColumn2 != null ? !ruleColumn2.equals(ruleColumn3) : ruleColumn3 != null) {
            return false;
        }
        String ruleOperator2 = getRuleOperator();
        String ruleOperator3 = onlAuthData.getRuleOperator();
        if (ruleOperator2 != null ? !ruleOperator2.equals(ruleOperator3) : ruleOperator3 != null) {
            return false;
        }
        String ruleValue2 = getRuleValue();
        String ruleValue3 = onlAuthData.getRuleValue();
        if (ruleValue2 != null ? !ruleValue2.equals(ruleValue3) : ruleValue3 != null) {
            return false;
        }
        Date createTime2 = getCreateTime();
        Date createTime3 = onlAuthData.getCreateTime();
        if (createTime2 != null ? !createTime2.equals(createTime3) : createTime3 != null) {
            return false;
        }
        String createBy2 = getCreateBy();
        String createBy3 = onlAuthData.getCreateBy();
        if (createBy2 != null ? !createBy2.equals(createBy3) : createBy3 != null) {
            return false;
        }
        String updateBy2 = getUpdateBy();
        String updateBy3 = onlAuthData.getUpdateBy();
        if (updateBy2 != null ? !updateBy2.equals(updateBy3) : updateBy3 != null) {
            return false;
        }
        Date updateTime2 = getUpdateTime();
        Date updateTime3 = onlAuthData.getUpdateTime();
        if (updateTime2 == null) {
            if (updateTime3 == null) {
                return true;
            }
        } else if (updateTime2.equals(updateTime3)) {
            return true;
        }
        return false;
    }

    @Override
    public int hashCode() {
        int i = 43;
        Integer status2 = getStatus();
        int hashCode = status2 == null ? 43 : status2.hashCode();
        String id = getId();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = id == null ? 43 : id.hashCode();
        String cgformId2 = getCgformId();
        int i3 = (hashCode2 + i2) * 59;
        int hashCode3 = cgformId2 == null ? 43 : cgformId2.hashCode();
        String ruleName2 = getRuleName();
        int i4 = (hashCode3 + i3) * 59;
        int hashCode4 = ruleName2 == null ? 43 : ruleName2.hashCode();
        String ruleColumn2 = getRuleColumn();
        int i5 = (hashCode4 + i4) * 59;
        int hashCode5 = ruleColumn2 == null ? 43 : ruleColumn2.hashCode();
        String ruleOperator2 = getRuleOperator();
        int i6 = (hashCode5 + i5) * 59;
        int hashCode6 = ruleOperator2 == null ? 43 : ruleOperator2.hashCode();
        String ruleValue2 = getRuleValue();
        int i7 = (hashCode6 + i6) * 59;
        int hashCode7 = ruleValue2 == null ? 43 : ruleValue2.hashCode();
        Date createTime2 = getCreateTime();
        int i8 = (hashCode7 + i7) * 59;
        int hashCode8 = createTime2 == null ? 43 : createTime2.hashCode();
        String createBy2 = getCreateBy();
        int i9 = (hashCode8 + i8) * 59;
        int hashCode9 = createBy2 == null ? 43 : createBy2.hashCode();
        String updateBy2 = getUpdateBy();
        int i10 = (hashCode9 + i9) * 59;
        int hashCode10 = updateBy2 == null ? 43 : updateBy2.hashCode();
        Date updateTime2 = getUpdateTime();
        int i11 = (hashCode10 + i10) * 59;
        if (updateTime2 != null) {
            i = updateTime2.hashCode();
        }
        return i11 + i;
    }

    public String getId() {
        return this.id;
    }

    public String getCgformId() {
        return this.cgformId;
    }

    public String getRuleName() {
        return this.ruleName;
    }

    public String getRuleColumn() {
        return this.ruleColumn;
    }

    public String getRuleOperator() {
        return this.ruleOperator;
    }

    public String getRuleValue() {
        return this.ruleValue;
    }

    public Integer getStatus() {
        return this.status;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public String getCreateBy() {
        return this.createBy;
    }

    public String getUpdateBy() {
        return this.updateBy;
    }

    public Date getUpdateTime() {
        return this.updateTime;
    }
}
